home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
DEPOSITO
/
REmovido
/
Esportes
/
Board.swf
/
scripts
/
DefineSprite_144
/
frame_10
/
DoAction.as
Wrap
Text File
|
2006-06-13
|
1KB
|
47 lines
skiY = _Y + skiSpeed;
skiX = _X + skiSpeed * skiDirection;
if(skiDirection == "0")
{
rampX = _X - getProperty("../ramp", _X);
rampY = _Y - getProperty("../ramp", _Y);
bigrampX = _X - getProperty("../bigramp", _X);
bigrampY = _Y - getProperty("../bigramp", _Y);
if(skijump == "0" and (- "80" < bigrampX and bigrampX < - "20" and - "20" < bigrampY and bigrampY < "50" or - "60" < rampX and rampX < - "10" and - "20" < rampY and rampY < "50"))
{
skijump = "1";
tellTarget("skieranim")
{
gotoAndPlay(7);
}
}
}
crashX = _X - getProperty("../trail1", _X);
crashY = _Y - getProperty("../trail1", _Y);
if(crashX < - "30" and - "70" < crashX and crashY < "10" and - "30" < crashY and eval("../trail1:jumpscale") < "120" and "150" < eval("../trail1:restart"))
{
tellTarget("../trail1/boardoanim")
{
gotoAndStop(11);
}
tellTarget("../trail1")
{
gotoAndPlay(25);
}
}
if(skiY < "500")
{
_Y = skiY;
_X = skiX;
gotoAndPlay(9);
}
else
{
set("on","0");
_Y = - "10";
tellTarget("skieranim")
{
gotoAndStop(1);
}
gotoAndStop(1);
}